package com.demo2do.fms.queue.dao;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.demo2do.fms.entity.vehicle.source.Vehicle;

/**
 *
 * @author Ark
 *
 */
@Dao("hibernate")
public interface VehicleDao {

    /**
     * @param code
     * @return
     */
    @Query("FROM Vehicle WHERE disabled = false AND code = :code")
    public Vehicle loadByCode(@Variable("code") String code);
    
}
